﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace WcfHost {
    partial class WcfHostService : ServiceBase {


        ServiceWrapper _wrapper = new ServiceWrapper();
        WorkerWrapper _workers = new WorkerWrapper();
                 
        public WcfHostService() {
            
            ServiceName = "Service Host";
            InitializeComponent();
        }

        protected override void OnStart(string[] args) {
            _wrapper.StartServices();
            _workers.StartWorkerThreads();

        }

        protected override void OnStop() {
           // _workers.StopWorkerThreads();
            _wrapper.StopServices();
            
        }
    }
}
